package com.spa.application.dto.admin;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
public class CouponExportDTO {

    @ExcelProperty(value = "团购券id", index = 0)
    private String id;

    @ExcelProperty(value = "订单编号", index = 1)
    private String orderId;

    @ExcelProperty(value = "用户名称", index = 2)
    private String username;

    @ExcelProperty(value = "用户手机号", index = 3)
    private String phone;

    @ExcelProperty(value = "服务项目名称", index = 4)
    private String serviceName;

    @ExcelProperty(value = "使用时间", index = 5)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useTime;

    @ExcelProperty(value = "生成时间", index = 6)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
